package com.xc.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

//此类封装LayUI数据表格中返回的数据格式

/**
 *      "code": res.status, //解析接口状态
 *       "msg": res.message, //解析提示文本
 *       "count": res.total, //解析数据长度
 *       "data": res.data.item //解析数据列表
 */
@Data
@NoArgsConstructor
public class DataGridViewResult {
    private Integer code=0;
    private String msg="";
    private Long count;
    private Object data;

    /**
     * 封装数据表格
     * @param count
     * @param data
     */
    public DataGridViewResult(Long count, Object data) {
        this.count = count;
        this.data = data;
    }
    public DataGridViewResult(Object data) {
        this.data = data;
    }
}
